//跳转第三方网站
import {Toast} from "@/utils/toast";

export const jump = (url: string, msg = "链接为空") => {
    if (!url || url == "#" || url == "" || url == "/") {
        if (msg == "链接为空") msg = `${msg}[${url}]`
        Toast(`${msg}`);
        return;
    }

    url = url.includes("http") ? url : `http://${url}`

    window.open(url);
};